This fix is correct and fixes:
1) GL textures being upside down in the inspector. They are getting
downloaded because they've been created in a different GL context
2) GL textures being upside down in the cairo renderer (same reason)
However, it breaks the testsuite. We do the flipping via the projection
matrix, but most of the shaders don't care about that.
cairo_surface_mark_dirty (image);
- /* Invert due to opengl having different origin */
- cairo_scale (cr, 1, -1);
- cairo_translate (cr, 0, -height / buffer_scale);
-
cairo_set_source_surface (cr, image, 0, 0);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
cairo_paint (cr);